import { MessageBox } from "element-ui";

// vxe 表格配置
export const gridOptions = {
  border: true,
  size: "mini",
  resizable: true,
  showOverflow: false,
  // height: 600,
  align: "left",
  toolbarConfig: {
    slots: {
      // 自定义工具栏模板
      buttons: "toolbar_buttons",
    },
  },
};

export const tableToolbar = {
  export: true,
  print: true,
  custom: true,
  zoom: true, //全屏
  //按钮
  slots: {
    buttons: "toolbar_buttons",
  },
};

export const gridOptionsMini = {
  border: true,
  size: "mini",
  resizable: true,
  showOverflow: true,
  // height: 600,
  align: "left",
};


/**
 * 弹出框提示消息
 * success/warning/info/error
 */
export function msgBox(title= "", msg= "", type= "") {
  MessageBox.alert(msg, "提示", {
    title: title,
    confirmButtonText: "确定",
    type: type,
  });
};